-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat : Add Phone Number Module : [ATLAS-24] #1
Conversation
This comment has been minimized.
This comment has been minimized.
Bundle Size Report
|
🟢 No Change | 🗑 File Deleted | 🆕 New File | 📈 Size Increased | 👍 Size Reduced |
---|
Parsed (kb) | |||||
---|---|---|---|---|---|
🚦 | File Name | Base | PR | Diff | % |
📈 | cjs/index.js |
12.02 |
32.97 |
|
174.29 |
📈 | esm/index.js |
11.98 |
32.94 |
|
174.96 |
📈 | umd/index.js |
13.57 |
37.17 |
|
173.91 |
This comment has been minimized.
This comment has been minimized.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1 +/- ##
==========================================
+ Coverage 83.16% 90.63% +7.46%
==========================================
Files 13 22 +9
Lines 101 235 +134
Branches 28 61 +33
==========================================
+ Hits 84 213 +129
- Misses 17 22 +5 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Divyansh Singh <[email protected]>
@@ -0,0 +1,245 @@ | |||
/* Source: Google LibPhoneNumber Metadata: https://github.com/google/libphonenumber/blob/master/javascript/i18n/phonenumbers/metadata.js */ | |||
|
|||
export const dialCodeMapper: { [key: number]: string[] } = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this getting used ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it is getting used 😆 in detectCountryCodeFromDialCode
.
IMO throw errors when the APIs do not match the schema, otherwise silently return the input as it is. |
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Unit Test Results0 files 0 suites 0s ⏱️ Results for commit 937107a. |
Description
This PR adds Phone Number module to the library.
Fixes # (issue)
Additional snippets: [Thread](Paste the thread link here....)
Jira/Asana
JIRA : https://razorpay.atlassian.net/browse/ATLAS-24
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
Reviewer Checklist